package cn.tansanqinger.service.chatroom.impl;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.tansanqinger.dao.sql.chatroom.GroupSqlDaoImpl;
import cn.tansanqinger.pojo.Flick;
import cn.tansanqinger.pojo.User;
import cn.tansanqinger.service.chatroom.IGroupService;
import cn.tansanqinger.util.PageData;

@Service
public class GroupServiceImpl implements IGroupService{

	@Autowired
	private GroupSqlDaoImpl impl;

	@Override
	public List<Flick> selectMessage(HttpServletRequest request) {
		User user = (User) request.getSession().getAttribute("user");
		return impl.selectMessage(user.getId());
	}

	@Override
	public PageData add(HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Flick selectIdOne(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PageData delete(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PageData modification(HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}
	
	
}
